
package server;

import DatagramPlusPlus.DatagramPlusPlusServerSocket;
import DatagramPlusPlus.DatagramPlusPlusSocket;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;

/**
 *
 * @author rafael
 */
public class MainServidor {

    private static DatagramPlusPlusServerSocket server;
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws SocketException, IOException {

        server = new DatagramPlusPlusServerSocket(6063);
        while(true) {
            DatagramPlusPlusSocket socket;
            socket = server.accept();

            Servidor s = new Servidor(socket);
            Thread sth = new Thread(s);
            sth.start();
        }

    }

}
